package com.liu.utils;


import org.springframework.stereotype.Component;

import java.util.Random;
@Component
public class Utils {

    public Integer randomPage(Integer max,Integer size){
        Integer num=max/size;
        Random random=new Random();
        Integer randomNum=random.nextInt(num)+1;
        return randomNum;
    }
}
